package com.sdry.utils;

import java.util.List;

/**
 * @ClassName: DataGridResult
 * @Description: 返回结果集进行封装
 * @Author cb
 * @Date 2018/4/24 13:51
 * @version 1.0
 */
public class DataGridResult {


    private Integer total;

    private List<?> rows;

    public DataGridResult(Integer total, List<?> rows) {
        this.total = total;
        this.rows = rows;
    }

    public DataGridResult(long total, List<?> rows) {
        this.total = (int) total;
        this.rows = rows;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<?> getRows() {
        return rows;
    }

    public void setRows(List<?> rows) {
        this.rows = rows;
    }


}
